package java8.date;

import java.sql.Date;
import java.time.Clock;
import java.time.Instant;

public class ClockDemo {
    public static void main(String[] args) {
        Clock clock = Clock.systemDefaultZone();

        System.out.println(clock.millis());
        Instant instant = clock.instant();
        java.util.Date date = Date.from(instant);
        System.out.println(date);
    }
}
